<?php
// +----------------------------------------------------------------------
// | Iecms [ Make the most exquisite CMS ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009~2019 http://www.iemoo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: iemoo <i@iemoo.com>
// +----------------------------------------------------------------------
// | DateTime: 2019/11/19 11:08
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

/**
 * 验证器
 * @package app\admin\validate
 */
class Category extends Validate
{
    protected $rule = [
        'title'		=> 'require|chsAlpha',
        'status'	=> 'require|number'
    ];

    protected $message = [
        'title.require'			=> '请输入组名称',
		'title.chsAlpha'		=> '组名称只能是汉字和字母',
        'title.unique'			=> '组名称已存在',
        'status.require'		=> '请选择状态',
		'status.number'			=> '状态不正确'
    ];

}